package commandCase;

public class Light {
    String LightStatus;

    @Override
    public String toString() {
        return "Light{" +
                "LightStatus='" + LightStatus + '\'' +
                '}';
    }

    public String getLightStatus() {
        return LightStatus;
    }

    public void setLightStatus(String lightStatus) {
        LightStatus = lightStatus;
    }

    public void on() {
        System.out.println("灯开了");
    }

    public void off() {
        System.out.println("灯灭了");
    }
}
